// 该文件用于创建整个应用的路由器
import VueRouter from "vue-router";
// 引入组件
import AboutVue from "../pages/AboutVue.vue";
import HomeVue from "../pages/HomeVue.vue";

// 创建并暴露一个路由器
export default new VueRouter({
  routes: [
    {
      path: "/about",
      component: AboutVue,
    },
    {
      path: "/home",
      component: HomeVue,
    },
  ],
});
